package com.neu.po;

import java.util.Date;

public class Eleme {
	private Integer id;
	private String ename;
	private String site;
	private String jies;
	private Double qsf;
	private Double psf;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public String getSite() {
		return site;
	}
	public void setSite(String site) {
		this.site = site;
	}
	public String getJies() {
		return jies;
	}
	public void setJies(String jies) {
		this.jies = jies;
	}
	public Double getQsf() {
		return qsf;
	}
	public void setQsf(Double qsf) {
		this.qsf = qsf;
	}
	public Double getPsf() {
		return psf;
	}
	public void setPsf(Double psf) {
		this.psf = psf;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ename == null) ? 0 : ename.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((jies == null) ? 0 : jies.hashCode());
		result = prime * result + ((psf == null) ? 0 : psf.hashCode());
		result = prime * result + ((qsf == null) ? 0 : qsf.hashCode());
		result = prime * result + ((site == null) ? 0 : site.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Eleme other = (Eleme) obj;
		if (ename == null) {
			if (other.ename != null)
				return false;
		} else if (!ename.equals(other.ename))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (jies == null) {
			if (other.jies != null)
				return false;
		} else if (!jies.equals(other.jies))
			return false;
		if (psf == null) {
			if (other.psf != null)
				return false;
		} else if (!psf.equals(other.psf))
			return false;
		if (qsf == null) {
			if (other.qsf != null)
				return false;
		} else if (!qsf.equals(other.qsf))
			return false;
		if (site == null) {
			if (other.site != null)
				return false;
		} else if (!site.equals(other.site))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Eleme [id=" + id + ", ename=" + ename + ", site=" + site + ", jies=" + jies + ", qsf=" + qsf + ", psf="
				+ psf + "]";
	}
	public Eleme(Integer id, String ename, String site, String jies, Double qsf, Double psf) {
		super();
		this.id = id;
		this.ename = ename;
		this.site = site;
		this.jies = jies;
		this.qsf = qsf;
		this.psf = psf;
	}
	
	public Eleme() {
		super();
		// TODO Auto-generated constructor stub
	}

}
